package com.newegg.datafeed.adserving.domain;

import java.util.Date;
import com.newegg.datafeed.adserving.model.Account;

/**
 * 企业信息表
 */
public class Company extends Account{
	private static final long serialVersionUID = -1331059617602254326L;

	/* 企业ID */
	private Integer id;

	/* 企业名称 */
	private String companyName;

	/* 帐号 */
	private String account;

	/* 昵称 */
	private String nickname;

	/* 密码 */
	private String password;

	/* 邮箱 */
	private String email;

	/* 手机号 */
	private String phone;

	/* 企业地址 */
	private String address;

	/* 企业法人名称 */
	private String corporateEntityName;

	/* 纳税编号 */
	private String taxid;

	/* 是否审核 */
	private Boolean verify;

	/* 审核人 */
	private String verifyBy;

	/* 是否禁用 */
	private Boolean disable;

	/* 描述 */
	private String memo;

	/* 创建时间 */
	private Date createDate;

	/* 更新时间 */
	private Date updateDate;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCorporateEntityName() {
		return corporateEntityName;
	}

	public void setCorporateEntityName(String corporateEntityName) {
		this.corporateEntityName = corporateEntityName;
	}

	public String getTaxid() {
		return taxid;
	}

	public void setTaxid(String taxid) {
		this.taxid = taxid;
	}

	public Boolean getVerify() {
		return verify;
	}

	public void setVerify(Boolean verify) {
		this.verify = verify;
	}

	public String getVerifyBy() {
		return verifyBy;
	}

	public void setVerifyBy(String verifyBy) {
		this.verifyBy = verifyBy;
	}

	public Boolean getDisable() {
		return disable;
	}

	public void setDisable(Boolean disable) {
		this.disable = disable;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Override
	public String toString() {
		return "{id : " + id + " , companyName : " + companyName + " , account : " + account + " , nickname : "
				+ nickname + " , password : " + password + " , email : " + email + " , phone : " + phone
				+ " , address : " + address + " , corporateEntityName : " + corporateEntityName + " , taxid : " + taxid
				+ " , verify : " + verify + " , verifyBy : " + verifyBy + " , disable : " + disable + " , memo : "
				+ memo + " , createDate : " + createDate + " , updateDate : " + updateDate + " }";
	}
	
	public String security() {
		String security = "COMPANY:" + this.id;
		this.password = null;
		return security;
	}
}
